package com.acme.bankapp.service.bank;

import com.acme.domain.bank.Account;
import com.acme.domain.bank.Client;
import com.acme.domain.bank.Gender;

public class ClientFactory {
	
	private AccountFactory accFactory;
	
	public ClientFactory(){
		this.accFactory = new AccountFactory();
	}
	
	public Client getClient(int i){
		Gender gender = i%2==0 ? Gender.MALE : Gender.FEMALE;
		String name = "Human_" + i;
		Account account = accFactory.getAccount(i);
		return new Client(account, name, gender);
	}

}
